package com.example.demo;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by summer on 2017/5/11.
 * 因为熔断只是作用在服务调用这一端, 断路器机制/fallback/资源隔离

 */
@FeignClient(name = "spring-cloud-producer2",fallback = HelloRemoteHystrix.class)
public interface HelloRemote {

    @RequestMapping(value = "/hellos")
    public String hello2(@RequestParam(value = "name") String name);


}
